Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-VisionPrescription3to4.html |
Url | http://hl7.org/fhir/StructureMap/VisionPrescription3to4 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | VisionPrescription3to4 |
Title | VisionPrescription Transforms: R3 to R4 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | VisionPrescriptionTransformsR3toR4 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/VisionPrescription3to4' /// name = 'VisionPrescription3to4' /// title = 'VisionPrescription Transforms: R3 to R4' /// status = 'active' uses "http://hl7.org/fhir/3.0/VisionPrescription" alias VisionPrescriptionR3 as source uses "http://hl7.org/fhir/4.0/VisionPrescription" alias VisionPrescription as target imports "http://hl7.org/fhir/StructureMap/*3to4" group VisionPrescription(source src : VisionPrescriptionR3, target tgt : VisionPrescription) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status -> tgt.status; src.patient -> tgt.patient; src.encounter -> tgt.encounter; src.dateWritten -> tgt.dateWritten; src.prescriber -> tgt.prescriber; src.reason as v -> tgt.extension as vt, vt.url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-VisionPrescription.Reason', vt.value = v; src.dispense as s -> tgt.lensSpecification as t then dispense(s, t); } group dispense(source src, target tgt) extends BackboneElement { src.product -> tgt.product; src.eye -> tgt.eye; src.sphere -> tgt.sphere; src.cylinder -> tgt.cylinder; src.axis -> tgt.axis; src where src.prism.exists() or src.base.exists() -> tgt.prism as t then { src.prism -> t.amount; src.base -> t.base; } "prism"; src.add -> tgt.add; src.power -> tgt.power; src.backCurve -> tgt.backCurve; src.diameter -> tgt.diameter; src.duration -> tgt.duration; src.color -> tgt.color; src.brand -> tgt.brand; src.note -> tgt.note; }
{
"resourceType" : "StructureMap",
"id" : "VisionPrescription3to4",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/VisionPrescription3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'VisionPrescription3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'VisionPrescription Transforms: R3 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/VisionPrescription<span style=\"color: navy\">" </span><b>alias </b>VisionPrescriptionR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/VisionPrescription<span style=\"color: navy\">" </span><b>alias </b>VisionPrescription <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>VisionPrescription<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>VisionPrescriptionR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>VisionPrescription<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status<span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -> </b></span>tgt.patient<span style=\"color: navy\">;</span>\r\n src.encounter<span style=\"color: navy\"><b> -> </b></span>tgt.encounter<span style=\"color: navy\">;</span>\r\n src.dateWritten<span style=\"color: navy\"><b> -> </b></span>tgt.dateWritten<span style=\"color: navy\">;</span>\r\n src.prescriber<span style=\"color: navy\"><b> -> </b></span>tgt.prescriber<span style=\"color: navy\">;</span>\r\n src.reason<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">vt</span><span style=\"color: navy\">, </span> vt.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-VisionPrescription.Reason'</span><span style=\"color: navy\">, </span> vt.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>\r\n src.dispense<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.lensSpecification<b> as </b><span style=\"color: maroon\">t</span><b> then </b>dispense<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dispense<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.product<span style=\"color: navy\"><b> -> </b></span>tgt.product<span style=\"color: navy\">;</span>\r\n src.eye<span style=\"color: navy\"><b> -> </b></span>tgt.eye<span style=\"color: navy\">;</span>\r\n src.sphere<span style=\"color: navy\"><b> -> </b></span>tgt.sphere<span style=\"color: navy\">;</span>\r\n src.cylinder<span style=\"color: navy\"><b> -> </b></span>tgt.cylinder<span style=\"color: navy\">;</span>\r\n src.axis<span style=\"color: navy\"><b> -> </b></span>tgt.axis<span style=\"color: navy\">;</span>\r\n src<b> where </b>src.prism.exists() or src.base.exists()<span style=\"color: navy\"><b> -> </b></span>tgt.prism<b> as </b><span style=\"color: maroon\">t</span><b> then</b><span style=\"color: navy\"> {\r\n</span> src.prism<span style=\"color: navy\"><b> -> </b></span>t.amount<span style=\"color: navy\">;</span>\r\n src.base<span style=\"color: navy\"><b> -> </b></span>t.base<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"prism"</i><span style=\"color: navy\">;</span>\r\n src.add<span style=\"color: navy\"><b> -> </b></span>tgt.add<span style=\"color: navy\">;</span>\r\n src.power<span style=\"color: navy\"><b> -> </b></span>tgt.power<span style=\"color: navy\">;</span>\r\n src.backCurve<span style=\"color: navy\"><b> -> </b></span>tgt.backCurve<span style=\"color: navy\">;</span>\r\n src.diameter<span style=\"color: navy\"><b> -> </b></span>tgt.diameter<span style=\"color: navy\">;</span>\r\n src.duration<span style=\"color: navy\"><b> -> </b></span>tgt.duration<span style=\"color: navy\">;</span>\r\n src.color<span style=\"color: navy\"><b> -> </b></span>tgt.color<span style=\"color: navy\">;</span>\r\n src.brand<span style=\"color: navy\"><b> -> </b></span>tgt.brand<span style=\"color: navy\">;</span>\r\n src.note<span style=\"color: navy\"><b> -> </b></span>tgt.note<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/VisionPrescription3to4",
"version" : "0.1.0",
"name" : "VisionPrescription3to4",
"title" : "VisionPrescription Transforms: R3 to R4",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "VisionPrescriptionTransformsR3toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/VisionPrescription",
"mode" : "source",
"alias" : "VisionPrescriptionR3"
},
{
"url" : "http://hl7.org/fhir/4.0/VisionPrescription",
"mode" : "target",
"alias" : "VisionPrescription"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to4"
],
"group" : [
{
"name" : "VisionPrescription",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "VisionPrescriptionR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "VisionPrescription",
"mode" : "target"
}
],
"rule" : [
{
"name" : "identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "patient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "encounter",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "encounter",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dateWritten",
"source" : [
{
"context" : "src",
"element" : "dateWritten",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dateWritten",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "prescriber",
"source" : [
{
"context" : "src",
"element" : "prescriber",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "prescriber",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "reason",
"source" : [
{
"context" : "src",
"element" : "reason",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "extension",
"variable" : "vt"
},
{
"context" : "vt",
"element" : "url",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-VisionPrescription.Reason"
}
]
},
{
"context" : "vt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "dispense",
"source" : [
{
"context" : "src",
"element" : "dispense",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "lensSpecification",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "dispense",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "dispense",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "product",
"source" : [
{
"context" : "src",
"element" : "product",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "product",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "eye",
"source" : [
{
"context" : "src",
"element" : "eye",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "eye",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "sphere",
"source" : [
{
"context" : "src",
"element" : "sphere",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "sphere",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "cylinder",
"source" : [
{
"context" : "src",
"element" : "cylinder",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "cylinder",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "axis",
"source" : [
{
"context" : "src",
"element" : "axis",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "axis",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "prism",
"source" : [
{
"context" : "src",
"condition" : "src.prism.exists() or src.base.exists()"
}
],
"target" : [
{
"context" : "tgt",
"element" : "prism",
"variable" : "t"
}
],
"rule" : [
{
"name" : "prism",
"source" : [
{
"context" : "src",
"element" : "prism",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "t",
"element" : "amount",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "base",
"source" : [
{
"context" : "src",
"element" : "base",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "t",
"element" : "base",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "add",
"source" : [
{
"context" : "src",
"element" : "add",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "add",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "power",
"source" : [
{
"context" : "src",
"element" : "power",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "power",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "backCurve",
"source" : [
{
"context" : "src",
"element" : "backCurve",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "backCurve",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "diameter",
"source" : [
{
"context" : "src",
"element" : "diameter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "diameter",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "duration",
"source" : [
{
"context" : "src",
"element" : "duration",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "duration",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "color",
"source" : [
{
"context" : "src",
"element" : "color",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "color",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "brand",
"source" : [
{
"context" : "src",
"element" : "brand",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "brand",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "note",
"source" : [
{
"context" : "src",
"element" : "note",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "note",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.